<template>
  <el-result status="403" title="403" sub-title="对不起, 你没有权限访问这个页面.">
    <template #extra>
      <el-button type="primary" @click="toHome"> 返回首页 </el-button>
    </template>
  </el-result>
</template>

<script setup name="Exception403">
import { useRouter } from 'vue-router';
const router = useRouter();

function toHome() {
  router.push({ path: '/' });
}
</script>
